package com.headhunter.portlet.service.impl;

import java.util.List;

import com.headhunter.portlet.dao.VocationDAO;
import com.headhunter.portlet.domain.Vocation;
import com.headhunter.portlet.service.VocationService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Implementation of <code>VocationService</code>.
 * 
 * @author Denis Skalenko
 */
@Service
public class VocationServiceImpl implements VocationService {

	@Autowired
	private VocationDAO vocationDAO;

	@Transactional
	public List<Vocation> vocationsListOrderByDate() {
		return vocationDAO.getVocationsListOrderByDate();
	}

	public void setDao(VocationDAO vocationDAO) {
		this.vocationDAO = vocationDAO;
	}
}
